<template>
    <div>
      <el-button @click="downloadCompress">点击下载压缩包</el-button>
    </div>
  </template>
  
  <script>
    export default {
      data() {
        return {
            
        }
      },
      methods: {
        downloadCompress() {
          //如果存在删除文件
          this.$http.post(process.env.VUE_APP_BASE_API + "/common/delete", {
            sPath: "C:/hjxr/uploadPath/upload/审计平台资料"
          }).then(res => {
            console.log(res)
            //重新下载文件
            this.$http.get(process.env.VUE_APP_BASE_API + "/common/compress").then(res => {
              this.download(res.body.msg)
            })
          })
        }
      }
    }
  
  </script>
  <style>
  
  </style>
  